SureCart\Models\Subscription B

Total Complexity 85
Dependencies 6
Dependents 9
Total lines 608
Lines of code 324
Logical lines of code 150
Comment lines 179
Methods 29
Properties 2

Methods 29

Method Rating Maintainability Complexity Lines of code
cancel()
S
47 6 37
restore()
S
50 6 29
renew()
S
50 5 30
complete()
S
51 5 29
upcomingPeriod()
S
51 5 28
update()
S
51 5 26
preserve()
S
52 5 25
payOff()
S
52 5 25
checkIfCanBeSwitched()
S
59 5 15
shouldDelayCancellation()
S
59 4 13
checkIfCanBeCanceled()
S
65 3 9
getEndAtDateAttribute()
S
78 2 3
getEndedAtDateAttribute()
S
78 2 3
getRestoreAtDateAttribute()
S
78 2 3
getAffiliationExpiresAtDateAttribute()
S
78 2 3
getTrialEndAtDateAttribute()
S
78 2 3
getTrialEndAtAtDateTimeAttribute()
S
78 2 3
getCurrentPeriodEndAtDateTimeAttribute()
S
78 2 3
getStartAtDateAttribute()
S
78 2 3
getAffiliationExpiresAtDateTimeAttribute()
S
78 2 3
getCurrentPeriodEndAtDateAttribute()
S
78 2 3
getCurrentPeriodStartAtDateAttribute()
S
78 2 3
checkIfCanUpdateQuantity()
S
71 2 6
isLifetime()
S
78 2 3
stats()
S
75 1 4
canUpdateQuantity()
S
79 1 3
canBeCanceled()
S
79 1 3
canBeSwitched()
S
79 1 3
setCurrentPeriodAttribute()
S
79 1 3